cmake_minimum_required(VERSION 3.4.1)
project(dynamic-lib-test)

set(CMAKE_BUILD_TYPE Debug CACHE STRING "set build type to debug")

# dynamic_lib1 shared
add_library(dylib1
	SHARED
    dynamic_lib_base.cpp
    dynamic_lib_base.h
    dynamic_lib1.cpp
    dynamic_lib1.h
)
	
# dynamic_lib2 shared
add_library(dylib2
	SHARED
	dynamic_lib_base.cpp
	dynamic_lib_base.h
	dynamic_lib2.cpp
	dynamic_lib2.h
)

# exe
add_executable(sample
    main.cpp
)
target_link_libraries(sample 
	dylib1
	dylib2
)
